package collection;

import java.util.LinkedHashSet;

/**
 * Created with IntelliJ IDEA
 * Description:LinkedHashSet学习
 * User:22954
 * Date:2024-02-11
 * Time:3:34
 */
@SuppressWarnings("all")
public class LinkedHashSet_ {
    /*
      1.LinkedHashSet是HashSet的子类
      2.LinkedHashSet底层维护的是LinkedHashMap(HashMap的子类)
     */
    public static void main(String[] args) {
        LinkedHashSet<Integer> integers = new LinkedHashSet<>();
        integers.add(1);
        integers.add(2);
        integers.add(3);
        integers.add(3);
        integers.add(4);
    }
}
